#include "cppTutorStaticMember.h"

#include <iostream>

using namespace std;

int CcppTutoStaticMember :: m_nsValue = 0;
#ifdef WIN32
        // fix windows compilation
#else
const int CcppTutoStaticMember :: m_nsConstValue;
#endif

CcppTutoStaticMember :: CcppTutoStaticMember () : m_nValue (0)
{
}

CcppTutoStaticMember :: ~CcppTutoStaticMember()
{
}

int CcppTutoStaticMember ::m_sGetValue()
{
	//error C2597: illegal reference to non-static member 'CcppTutoStaticMember::m_nValue'
	//m_nValue = 10;
	return m_nsValue;
}

